import request from '@/utils/request'

// 查询专区列表
export function listType(query) {
  return request({
    url: '/business/zqtype/list',
    method: 'get',
    params: query
  })
}
export function alllistZqType(query) {
  return request({
    url: '/business/zqtype/allList',
    method: 'get',
    params: query
  })
}



// 查询专区详细
export function getType(id) {
  return request({
    url: '/business/zqtype/' + id,
    method: 'get'
  })
}

// 新增专区
export function addType(data) {
  return request({
    url: '/business/zqtype',
    method: 'post',
    data: data
  })
}

// 修改专区
export function updateType(data) {
  return request({
    url: '/business/zqtype',
    method: 'put',
    data: data
  })
}

// 删除专区
export function delType(id) {
  return request({
    url: '/business/zqtype/' + id,
    method: 'delete'
  })
}
